package com.foreknow.demo4;

import java.util.Scanner;

public class ArrayDemo3 {
    //从控制台输入五次成绩
    //成绩保存数组
    //打印成绩
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        //从控制台输入成绩
        System.out.println("输入成绩");
        int[] arr = new int[5];
        for (int i =0;i<5;i++){
          arr[i] =input.nextInt();

        }
        for(int i = 0;i<arr.length;i++){
            System.out.println(arr[i]);
        }


    }

}
